package rui.game.component;

import lombok.Setter;
import rui.game.component.function.Cheat;

import javax.swing.*;
import java.awt.*;

/**
 * 统计
 * @author 赵睿
 */
public class Count extends JLabel {

    protected int count=0;

    public void setCount(int count) {
        this.count = count;
        this.setText(String.valueOf(count));
    }

    public Count() {
        super(String.valueOf(0));
        this.setForeground(Color.RED);
        this.setFont(new Font("楷体", Font.PLAIN, 27));
        this.setBounds(79, -1, 114, 50);// 设置Labelcount标签的坐标，大小
    }


    public static Count init(Count count) {
        if(count==null){
            count=new Count();
        }
        return count;

    }
}
